package com.jdls.work;

import java.util.Arrays;

/**
 * @author 嘉德罗斯
 * @date 2021/8/29
 */
public class User {
    private String username;//用户名
    private String name ;//姓名
    private String sex;//性别
    private String birthday;//生日
    private String[] hobby;//爱好
    private String place;//籍贯

    public User() {
    }

    public User(String username, String name, String sex, String birthday, String[] hobby, String place) {

        this.username = username;
        this.name = name;
        this.sex = sex;
        this.birthday = birthday;
        this.hobby = hobby;
        this.place = place;
    }

    public String getUsername() {

        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getName(String 姓名) {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String[] getHobby() {
        return hobby;
    }

    public void setHobby(String[] hobby) {
        this.hobby = hobby;
    }

    public String getPlace() {
        return place;
    }

    public void setPlace(String place) {
        this.place = place;
    }

    @Override
    public String toString() {
        return "User{" +
                "username='" + username + '\'' +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", birthday='" + birthday + '\'' +
                ", hobby=" + Arrays.toString(hobby) +
                ", place='" + place + '\'' +
                '}';
    }
}
